﻿using Windows.ApplicationModel.Resources.Core;


namespace WinRTDatabase
{
    /// <summary>
    /// He
    /// </summary>lper class to get the resources data
    public static class ResourceHelper
    {
        //private static ResourceMap map = ResourceManager.Current.MainResourceMap.GetSubtree("Resources");
        

        /// <summary>
        /// Get resource string based on resourse key
        /// </summary>
        /// <param name="key">Rcsource key</param>
        /// <returns>Resource value</returns>
        public static string GetResourceString(string key)
        {
            //TODO: fix resources
           
            var maps = ResourceManager.Current.AllResourceMaps;
            ResourceMap map = ResourceManager.Current.MainResourceMap.GetSubtree("Resources");
            return map.GetValue(key).ToString();
        }
    }
}
